﻿using System.Windows.Forms;

namespace Mota.XMLControls
{
    public class DXGuiFactory:GuiFactory
    {
        public override GuiLabel CreateLabel()
        {
            return new DXGuiLabel();
        }

        public override GuiGroupBox CreateGroupBox()
        {
            return new DXGuiGroupBox();
        }

        public override GuiComboBox CreateComboBox()
        {
            return new DXGuiComboBox();
        }

        public override GuiTextBox CreateTextBox()
        {
            return new DXGuiTextBox();
        }

        public override GuiSplitter CreateSplitter()
        {
            return new DXGuiSplitter();
        }
        public override GuiSplitterPanel CreateSplitterPanel(GuiSplitter parent)
        {
            return new DXGuiSplitterPanel(parent);
        }

        public override void AddGuiToVisual(GuiControl guiControl, object visualControl)
        {
            (visualControl as Control).Controls.Add(guiControl.visualControl as Control);
        }


        public override GuiTabControl CreateTabControl()
        {
            return new DXGuiTabControl();
        }

        public override GuiTab CreateTab()
        {
            return new DXGuiTab();
        }

        public override GuiWebBrowser CreateWebBrowser()
        {
            return new DXGuiWebBrowser();
        }

        public override GuiRichText CreateRichText()
        {
            return new DXGuiRichText();
        }
        public override GuiDateTime CreateDateTime()
        {
            return new DXGuiDateTime();
        }

        public override GuiImageBox CreateImageBox()
        {
            return new DXGuiImageBox();
        }
        public override GuiCheckBox CreateCheckBox()
        {
            return new DXGuiCheckBox();
        }
        public override GuiMaskText CreateMaskText()
        {
            return new DXGuiMaskText();
        }
        public override GuiNumeric CreateNumeric()
        {
            return new DXGuiNumeric();
        }
        public override GuiCheckedList CreateCheckedList()
        {
            return new DXGuiCheckedList();
        }
        public override GuiTreeView CreateTreeView()
        {
            return new DXGuiTreeView();
        }

        public override GuiColor CreateColor()
        {
            return new DXGuiColor();
        }

        public override GuiTime CreateTime()
        {
            return new DXGuiTime();
        }

        public override GuiDictionaryDecorator CreateDictionaryDecorator(GuiControl decorated)
        {
            return new DXGuiDictionaryDecorator(decorated);
        }

        public override GuiTrackBar CreateTrackBar()
        {
            return new DXGuiTrackBar();
        }

        public override GuiPanel CreatePanel()
        {
            return new DXGuiPanel();
        }

        public override GuiRadioGroup CreateRadioGroup()
        {
            return new DXGuiRadioGroup();
        }

        public override GuiListBox CreateListBox()
        {
            return new DXGuiListBox();
        }

        public override GuiCheckedComboBox CreateCheckedComboBox()
        {
            return new DXGuiCheckedComboBox();
        }

        public override GuiRangeTrackBar CreateRangeTrackBar()
        {
            return new DXGuiRangeTrackBar();
        }
    }
}
